<template>
  <n-config-provider :locale="zhCN" :theme="darkTheme" :date-locale="dateZhCN">
    <template v-if="isProd">
      <router-view/>
    </template>

    <n-theme-editor v-else>
      <router-view/>
    </n-theme-editor>
  </n-config-provider>
</template>
<script setup lang="ts">
  import { zhCN, dateZhCN, darkTheme } from 'naive-ui'
  const isProd = import.meta?.env?.PROD;
</script>
